<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <ul>
      <li>l1</li>
      <li>l2</li>
      <li>l3 <b>!!</b> <i>jack</i></li>
      <li>l4</li>
      <li>l5</li>
    </ul>

    <script>
      const ul = document.body.childNodes[1];
      const li5 = ul.childNodes[5];

      console.log(ul.childNodes);

      console.log(li5.previousSibling.previousSibling);
      console.log(li5.nextSibling.nextSibling);
      console.log(li5.parentNode);
      console.log(li5.childNodes);
    </script>
  </body>
</html>
